package tec;
import poounit.*;

public class TestAutobusException
{

	public static void lancer()
	{
		testCreationNonValide();
	}


	@Test
	public static void testCreationNonValide(){
		Autobus bus;
		try{
			bus = new Autobus(-5, 0);	
		}
		catch(IllegalArgumentException e){
			System.out.println("erreur, nbAssis < 0");
		}
		try{
			bus = new Autobus(4, -2);	
		}
		catch(IllegalArgumentException e){
			System.out.println("erreur, nbDebout < 0");
		}
	}

}
